const {ipcRenderer } = window.require('electron')
console.log(ipcRenderer )
const electronIpc = {
  send: (channel, data) => {
    ipcRenderer.send(channel, data)
  },
  on: (channel, callback) => {
    ipcRenderer.on(channel, (event, data) => {
      callback(data)
    })
  }
}

module.exports = electronIpc
